package com.tan.lbs.entity;

import java.util.ArrayList;
import java.util.List;

public class Trigger {
	private String triggerID;
	private List<Condition> conditions;
	private String triggerText;
	private String actionObjectID;
	private String actionType;
	public static final String TRIGGER_STATUS = "t";
	public static final String NOT_TRIGGER_STATUS = "f";
	public static final String BECOME_CHATTABLE_ACTION = "npcchat";
	public static final String BECOME_PICKABLE_ACTION = "itempick";
	public static final String COMPLETE_QUEST_ACTION = "questcomplete";
	public static final String START_QUEST_ACTION = "queststart";
	
	
	public Trigger(String triggerID) {
		this();
		this.triggerID = triggerID;
	}
	
	public Trigger() {
		conditions = new ArrayList<Condition>();
	}
	
	public String getTriggerID() {
		return triggerID;
	}
	
	public void setTriggerID(String triggerID) {
		this.triggerID = triggerID;
	}
	
	/**
	 * A lazy loading when someone tries to get the conditions.
	 * @return
	 */
	public List<Condition> getConditions() {
		return conditions;
	}


	public String getTriggerText() {
		return triggerText;
	}

	public void setTriggerText(String triggerText) {
		this.triggerText = triggerText;
	}
	


	public String getActionObjectID() {
		return actionObjectID;
	}

	public void setActionObjectID(String actionObjectID) {
		this.actionObjectID = actionObjectID;
	}

	public String getActionType() {
		return actionType;
	}

	public void setActionType(String actionType) {
		this.actionType = actionType;
	}

}
